<template>
  <div class="tab">
    <router-link tag="div" class="tab-item" to="/home">
      <span class="tab-link tab_grp">
        <span class="iconfont icon-tabhome-icon "></span>
        <span class="iconfont icon-shouye2 "></span>
        <span>首页</span>
      </span>
    </router-link>
    <router-link tag="div" class="tab-item" to="/articleColumn">
      <span class="tab-link tab_grp">
       <span class="iconfont icon-wenzhangshouye"></span>
        <span class="iconfont icon-shiliangzhinengduixiang"></span>
        <span>文章</span>
      </span>
    </router-link>
    <router-link tag="div" class="tab-item" to="/psyTest">
      <span class="tab-link tab_grp">
        <span class="iconfont icon-tabtest-icon"></span>
        <span class="iconfont icon-ceshishouye"></span>
        <span>测试</span>
      </span>
    </router-link>
    <router-link tag="div" class="tab-item" to="/userCenter">
      <span class="tab-link tab_grp">
       <span class="iconfont icon-wodeshouyexuanzhong1"></span>
        <span class="iconfont icon-my-icon"></span>
        <span>我的</span>
      </span>
    </router-link>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    name:'Tab'
  }
</script>

<style scoped rel="stylesheet/css">

  .tab {
    position: fixed;
    width: 100%;
    height: 96px;
    left: 0;
    bottom: 0;
    border-top: solid 1px #cecece;
    color: #666666;
    background: white;
    z-index: 20;
    padding-top: 6px;
    /*display: none;*/
  }

  .tab div {
    width: 25%;
    float: left;
    text-align: center;
    height: 96px;
    font-size: 20px;
  }

  .tab_grp span {
    display: block;
    height: 24px;
  }

  .tab_grp .iconfont {
    font-size: 48px;
    margin-top: 6px;
    margin-bottom: 25px;

  }

  .tab_grp .icon-tabhome-icon {
    display: none;
    font-size: 0;
  }

  .tab_grp .icon-wenzhangshouye {
    display: none;
    font-size: 0;
    -webkit-transition: font-size 3s ease-out 0s;
    -moz-transition: font-size 3s ease-out 0s;
    transition: font-size 3s ease-out 0s;
  }

  .tab_grp .icon-tabtest-icon {
    display: none;
    font-size: 0;
    -webkit-transition: font-size 0.25s ease-out 0s;
    -moz-transition: font-size 0.25s ease-out 0s;
    transition: font-size 0.25s ease-out 0s;
  }

  .tab_grp .icon-wodeshouyexuanzhong1 {
    display: none;
    font-size: 0;
    -webkit-transition: font-size 0.25s ease-out 0s;
    -moz-transition: font-size 0.25s ease-out 0s;
    transition: font-size 0.25s ease-out 0s;
  }

  .router-link-active {
    color: #1ea9a8;
  }

  .router-link-active .icon-shouye2{
    display: none;
  }
  .router-link-active .icon-shiliangzhinengduixiang{
    display: none;
  }
  .router-link-active .icon-ceshishouye{
    display: none;
  }
  .router-link-active .icon-my-icon{
    display: none;
  }

  .router-link-active .tab_grp .icon-tabhome-icon {
    display: block;
    font-size: 48px;

  }

  .router-link-active .tab_grp .icon-wenzhangshouye {
    display: block;
    font-size: 48px;

  }

  .router-link-active .tab_grp .icon-tabtest-icon {
    display: block;
    font-size: 48px;

  }

  .router-link-active .tab_grp .icon-wodeshouyexuanzhong1 {
    display: block;
    font-size: 48px;

  }

</style>
